<?php

namespace app\controller\admin;

use app\common\model\setting\ConfigWeb;
use app\common\service\DemandDirectoryService;
use think\annotation\route\Route;
use think\facade\Request;
use app\common\model\Admin;
use app\common\util\Result;
use think\annotation\route\Post;
use think\annotation\route\Group;

#[Group('admin/index')]
class IndexController extends AdminBaseController
{
    #[Route('GET|POST', 'config')]
    public function page(Admin $admin)
    {

        return Result::jsonByResult(Result::success(["web" => ConfigWeb::instance()->toArray()]));
    }
}
